<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Allwees – Good stuff with decent price</title>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="keywords" content="allwees, Social Shopping, Faster Shipping, Group Buying, Accessories, Women's Clothing, Men's Clothing, Men's Shoes, Women's Shoes">
    <meta name="description" content="Allwees – Good stuff with decent price">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
      html,
      body {
          width: 100%;
          height: 100%;
          background: white;
          padding-bottom: 2rem;
      }

      * {
          margin: 0;
          padding: 0;
          -webkit-box-sizing: border-box;
          -moz-box-sizing: border-box;
          box-sizing: border-box;
      }

      html {
          min-width: 320px;
      }

      ol,ul,dl,p {
          margin-top: 0;
          margin-bottom: 0;
      }

      a {
        text-decoration: none;
        cursor: pointer;
      }

      p {
        text-align: center;
      }

      p a {
        color: #2FB6EC;
      }

      a.button {
        display: block;
        width: 100px;
        border-radius: 2px;
        font-size: 14px;
        text-align: center;
        height: 30px;
        line-height: 30px;
        color: white;
        font-weight: 500;
        background-color: red;
      }

      .logo {
        display: block;
        text-align: center;
        padding: 20px 0 10px;
      }

      .logo img {
        width: 160px;
        cursor: pointer;
      }

      .tip {
        background: linear-gradient(#4cc8f8,#1698ca);
        padding: 10px;
      }

      .tip a {
        color: white;
        cursor: pointer;
      }
      .view {
        border: 1px dashed #2fb7ec;
        margin: 10px 0;
      }

      .view-content {
        padding: 10px;
      }
      .view-content p{
        color: #666;
        margin-top: 4px;
        /* word-break: break-all; */
      }
      .view-content .password {
        text-align: center;
        border: 1px dashed #BFBFBF;
        padding: 10px;
        color: #777;
        border-radius: 5px;
      }

      .view-title {
        text-align: center;
        color: #2fb7ec;
        font-weight: 500;
      }

      table {
        width: 100%;
      }
      .line {
        height: 70px;
        line-height: 70px;
        text-align: center;
      }

      .line img {
        width: 18px;
        height: 18px;
        display: inline-block;
        vertical-align: middle;
      }

      .line-bonus {
        background-color: #E9FCF6;
        color: #56AD85;
      }

      .line-shipping {
        background-color: #E7F4FB;
        color: #027EB4;
      }

      .box-item {
        margin: 20px 0 30px;
      }

      .item-info {
        color: #666;
      }

      .social {
        padding-top: 20px;
        text-align: center;
      }

      .social img {
        width: 24px;
        margin: 0 10px;
      }

      @media (min-width: 600px) {
        .main-container {
          width: 600px;
          margin: 0 auto;
        }
      }
      @media (max-width: 600px) {
        .main-container {
          width: 100%;
        }
        html,body {
          font-size: 13px;
        }
        .view {
          margin: 10px;
        }
      }
    </style>
</head>

<body>
  <div class="main-container">
    <a class="logo" href="https://www.allwees.com" target="_blank">
      <img src="https://prod-files-o.allwees.com/category/2020/logo.png" alt="logo">
    </a>

    <div class="tip">
      <a href="https://www.allwees.com/account/refer" target="_blank">Earn up to $100 for referring friends. Share your code!</a>
    </div>
    <div class="view">
      <div class="view-content">
        <div class="view-title"><b>You're in, ${userName}!</b></div>
        <div class="view-title">We're so happy to welcome you.</div>
        <p>Allwees connects you to over so many global merchants so that you can shop a variety of affordable goods.</p>
        <p>Enjoy up to 90% off on clothes, shoes, home goods and more!</p>
      </div>
	  <#if show>
	    <div class="view-content">
			<div class="password">
			  <div>Your account:${email}</div>
			  <div>Your default password:${password}</div>
			  <div>you can also login with email and password directly next time!</div>
			</div>
      </div>
	  </#if>

      <div class="line line-bonus"><img src="https://prod-files-o.allwees.com/category/2020/gift.png" alt="gift"> New user bonus</div>
      <div class="box-item">
        <table border="0">
          <tr>
            <td>
              <div style="padding: 20px;text-align: center;">
                <img style="width: 60px;height: 60px;" src="https://prod-files-o.allwees.com/category/2020/bonus-item1.png" alt="cash">
              </div>
            </td>
            <td>
              <div class="item-info">
                <h3 style="color: #EFBE51;">100points</h3>
                <div style="padding: 6px 0;">which can redeem coupon</div>
                <a class="button" style="background-color: #EFBE51;" onclick="goApp('rewards')">Check it</a>
              </div>
            </td>
          </tr>

          <tr>
            <td>
              <div style="padding: 20px;text-align: center;">
                <img style="width: 60px;height: 60px;" src="https://prod-files-o.allwees.com/category/2020/bonus-item2.png" alt="cash">
              </div>
            </td>
            <td>
              <div class="item-info">
                <h3 style="color: #5CB4E7;">Registeration Coupon</h3>
                <div style="padding: 6px 0;">up to 50% off</div>
                <a class="button" style="background-color: #5CB4E7;" onclick="goApp('home')">Get it</a>
              </div>
            </td>
          </tr>

          <tr>
            <td>
              <div style="padding: 20px;text-align: center;">
                <img style="width: 60px;height: 60px;" src="https://prod-files-o.allwees.com/category/2020/bonus-item3.png" alt="cash">
              </div>
            </td>
            <td>
              <div class="item-info">
                <h3 style="color: #449390;">Free gift</h3>
                <div style="padding: 6px 0;">just pay the shipping fee</div>
                <a class="button" style="background-color: #449390;" onclick="goApp('home')">Choose one</a>
              </div>
            </td>
          </tr>
        </table>
      </div>
      <div class="line line-shipping"><img src="https://prod-files-o.allwees.com/category/2020/shipping.png" alt="gift"> Shopping Security</div>
      <div style="margin-top: 20px">
        <table border="0">
          <tr>
            <td>
              <div style="text-align: center;">
                30 Days return and refund
              </div>
            </td>

            <td>
              <div>
                <img style="max-width: 100%;" src="https://prod-files-o.allwees.com/category/2020/shipping-item1.png" alt="cash">
              </div>
            </td>
          </tr>

          <tr>
            <td>
              <div>
                <img style="max-width: 100%;" src="https://prod-files-o.allwees.com/category/2020/shipping-item2.png" alt="cash">
              </div>
            </td>
            <td>
              <div style="text-align: center;">
                Free shipping over $50
              </div>
            </td>
          </tr>
          
        </table>
      </div>

      <div style="margin: 10px 0;">
        <div style="width: 100%;text-align: center;">Wish you a happy shopping experience!</div>
        <div onclick="goApp('home')" style="background-color: #EFBE51; padding: 6px 0;border-radius: 2px;width: 100px;text-align: center;color: white;margin: 20px auto;cursor: pointer;">Shop now</div>
      </div>

      <div style="border-top: 1px solid #eee;border-bottom: 1px solid #eee;">
        <table>
          <tr>
            <td>
              <div style="text-align: center;">
                Download our APP
              </div>
            </td>
            <td>
              <a onclick="webDownloadApp('iphone')">
                <img style="width: 100px;padding: 10px 0" src="https://prod-files-o.allwees.com/category/2020/appStore.png" alt="gift">
              </a>
            </td>
          </tr>
        </table>
      </div>

      <div class="social">
        <a href="https://www.instagram.com/allwees_official/" target="_blank"><img src="https://prod-files-o.allwees.com/category/2020/social-ins.png" alt="ins"></a>
        <a href="https://www.youtube.com/channel/UCX02iWkqnGtLid-U50aqGNQ"  target="_blank"><img src="https://prod-files-o.allwees.com/category/2020/social-youtube.png" alt="youtube"></a>
        <a href="https://www.facebook.com/allwees/" target="_blank"><img src="https://prod-files-o.allwees.com/category/2020/social-facebook.png" alt="facebook"></a>
        <a href="https://twitter.com/allwees" target="_blank"><img src="https://prod-files-o.allwees.com/category/2020/social-twitter.png" alt="twitter"></a>
      </div>

      <div class="view-content">
        <p>You are receiving this email because you subscribed at</p>
        <p><a href="https://www.allwees.com">Allwees.com</a></p>
        <p>This email was sent from notification-only address that cannot accept incoming emails.</p>
        <p>Please do not reply to this message. if you have any questions or concerns, please contact us at <a href="mailto:support@allwees.com">customer@allwees.com</a></p>
      </div>
     
    </div>
  </div>
  <script>
    function goApp(url) {
      let mobile = device();
      // console.info('mobile',mobile)
      webOpenApp(mobile,url)
    }

    function device() {
      if (navigator.userAgent.indexOf('iPhone') >= 0 || navigator.userAgent.indexOf('iPad') >= 0 || navigator.userAgent.indexOf('iPod') >= 0) {
        return 'iphone'
      } else if (navigator.userAgent.indexOf('Android') >= 0) {
        return 'android'
      }else {
        return ''
      }
    }

    //web端打开app
    function webOpenApp(mobile,url) {
      let loadTime = Date.now();
      if (mobile == 'iphone') {
        window.location.href = "allwees://" + url
      // } else if (mobile == 'android') {
      //   window.location.href = "allwees://" + url
      }else {
        window.location.href = "https://www.allwees.com"
      }
      // 超过1s,即代表用户已经安装APP
      setTimeout(() => {
        if ((Date.now() - loadTime) < 1000 ){
          webDownloadApp(mobile)
        }
      }, 600);
    }
    // web端下载app
    function webDownloadApp(mobile) {
      // console.info('webDownloadApp')
      if (mobile == 'iphone') {
        window.location.href = 'https://apps.apple.com/cn/app/allwees/id1482764991?l=zh&ls=1&mt=8&channel=ins'
      // } else if (mobile == 'android') {
      //   window.location.href = 'https://play.google.com/store/apps/details?id=com.allweesapp.allwees'
      }else {
        window.location.href = "https://www.allwees.com"
      }
    } 
  </script>
</body>
</html>

      
